//
//  QScanInforMationView.m
//  QoilPublic
//
//  Created by 杨凯 on 16/8/23.
//  Copyright © 2016年 杨凯. All rights reserved.
//

#import "QScanInforMationView.h"

@interface QScanInforMationView()

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *oneConstrain;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *twoConstrain;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *threeConstrain;


@property (weak, nonatomic) IBOutlet UILabel *priceLabel;


@property (weak, nonatomic) IBOutlet UILabel *riseLabel;


@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;


@end

@implementation QScanInforMationView

- (void)awakeFromNib{

    [super awakeFromNib];
    self.oneConstrain.constant = 0.5;
    self.twoConstrain.constant = 0.5;
    self.threeConstrain.constant = 0.5;
}

- (void)setDic:(NSDictionary *)dic{

    _dic = dic;
    
    _priceLabel.text = _dic[@"oilprice"];
    _riseLabel.text = _dic[@"oilunit"];
    _moneyLabel.text = _dic[@"totalprice"];
}

@end
